package service;

import lombok.extern.slf4j.Slf4j;
import mapper.PaymentTransactionMapper;
import org.springframework.stereotype.Component;

/**
 * @Author: YLTDMenglc
 * @Date: 2019/6/11
 * @Time: 13:01
 * @Description:
 */
@Slf4j
@Component
public class PaymentService {

    public void updatePaymentStatus() {
        // 2.修改订单状态为已经支付
        new PaymentTransactionMapper() {
            @Override
            public void updatePaymentStatus() {
                log.info("第二个模块>>>修改订单状态为已经支付>>>>>");
            }
        }.updatePaymentStatus();
    }
}
